package mall.service;

import mall.model.Admin;
import mall.model.bo.AdminAddAdminBO;
import mall.model.bo.AdminLoginBO;
import mall.model.bo.AdminSearchBO;

import java.util.List;
import java.util.Map;

/*
 *
 * @author Yonni
 * @version 1.8.0_201
 * @date 2020-05-27 18:16
 *
 * */
public interface AdminService {
    Admin login(AdminLoginBO loginBO);

    List<Admin> allAdmins();

    List<Admin> getSearchAdmins(AdminSearchBO searchBO);

    void deleteAdmin(String id);

    Admin getAdminsInfo(String id);

    Map<String, Object> addAdmin(AdminAddAdminBO addAdminBO);

    boolean updateAdmin(Admin admin);
}
